.empty-content {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

::deep .trace-details-mobile {
    padding-left: var(--layout-left-padding);
    padding-right: var(--layout-right-padding);
    padding-bottom: 4px;
}

::deep .trace-id {
    color: var(--foreground-subtext-rest);
    padding-left: 0.5rem;
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
}

::deep .trace-view-grid {
}

::deep .trace-view-grid .fluent-data-grid-row:not([row-type='header']):hover .span-bar-label-detail {
    display: inline !important;
}

::deep .trace-view-grid .fluent-data-grid-row:not([row-type='header']) {
    background: var(--fill-color);
    border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
}

::deep .fluent-data-grid-row[row-type='sticky-header'] th:first-child {
    margin-left: 5px;
}

::deep .trace-view-grid .fluent-data-grid-row {
    padding: 0;
    border: 0;
    align-items: center;
}

::deep .trace-view-grid td {
    padding: 0;
    border: 0;
    border-radius: 0;
    vertical-align: middle;
}

::deep .trace-view-grid .column-header {
    padding: 0 !important;
    min-height: 32px !important;
    height: 32px !important;
    border-bottom: 0;
}

::deep .ticks {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
}

::deep .ticks .tick {
    width: 1px;
    height: 32px;
    background: #d8d8d8;
    grid-row: 1;
}

::deep .ticks .end-tick {
    justify-self: end;
    grid-row: 1;
}

::deep .tick-label {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    white-space: nowrap;
    grid-row: 1;
    text-align: left;
}

::deep .span-name-container {
    vertical-align: middle;
}

::deep .span-container {
    grid-column: 1 / span 4;
    grid-row: 1;
    height: 100%;
    display: grid;
    /* z-index is required so the span is displayed above ticks */
    z-index: 1;
    align-items: center;
}

::deep .span-container .span-bar {
    height: 15px;
    border-radius: 5px;
    grid-row: 1;
}

::deep .span-container .span-bar-label {
    font-size: 12px;
    color: var(--foreground-subtext-rest);
    padding: 0 0.5em;
    height: min-content;
}

::deep .span-container .span-bar-label-detail {
    display: none;
}

::deep .span-container .span-bar-label-right {
    grid-row: 1;
    grid-column: 3;
}

::deep .span-container .span-bar-label-left {
    grid-row: 1;
    grid-column: 1;
    justify-self: end;
}

::deep .uninstrumented-peer {
    padding-left: 0.25rem;
    color: var(--foreground-subtext-rest);
    font-size: 12px;
}

::deep .span-kind-icon {
    margin-right: 3px;
    vertical-align: text-bottom;
}

::deep .uninstrumented-peer-icon {
    vertical-align: text-bottom;
}

::deep .selected-row .uninstrumented-peer,
::deep .selected-row .fluent-data-grid-row:not([row-type='header']):hover .uninstrumented-peer,
::deep .fluent-data-grid-row:not([row-type='header']):hover .uninstrumented-peer,
::deep .selected-row .span-container .span-bar-label,
::deep .selected-row .fluent-data-grid-row:not([row-type='header']):hover .span-container .span-bar-label,
::deep .fluent-data-grid-row:not([row-type='header']):hover .span-container .span-bar-label {
    color: var(--neutral-foreground-rest);
}

::deep .pane-details-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

::deep .span-overview-container {
    height: 24px;
    display: inline-flex;
    align-items: center;
}

::deep .resource-name {
    margin-left: 16px;
}

::deep .trace-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "details filters";
    width: 100%;
}

::deep .trace-header-details {
    grid-area: details;
}

::deep .trace-header-details .fluent-overflow-item {
    align-content: center;
    padding-right: 8px;
    text-wrap-mode: nowrap;
}

::deep .trace-header-details .fluent-overflow-more {
    align-content: center;
}

::deep .trace-header-tooltip {
    min-width: 300px;
}

::deep .trace-header-filters {
    grid-area: filters;
    display: flex;
    column-gap: 8px;
}

::deep .span-button-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
}

::deep .span-log-entry-button {
    position: absolute;
    width: 15px;
    height: 15px;
    overflow: hidden;
    border-radius: 50%;
    align-self: center;
    opacity: 0.8;
    transform: translateX(-50%);
    background: color-mix(in srgb, var(--button-color), white 30%);
    border-color: color-mix(in srgb, var(--button-color), black 50%);
}

::deep .span-log-entry-button:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--button-color), white 50%);
}

::deep .span-log-entry-error {
    opacity: 1;
    /* Error log entries appear above non-error log entries */
    z-index: 1;
    background: color-mix(in srgb, var(--button-color), white 15%);
    border-color: color-mix(in srgb, var(--button-color), black 50%);
}

::deep .span-log-entry-error:hover {
    background: color-mix(in srgb, var(--button-color), white 30%);
}

::deep .span-log-entry-selected {
    opacity: 1;
    background: color-mix(in srgb, var(--button-color), white 50%);
    width: 20px;
    height: 20px;
}

::deep .span-log-entry-selected.span-log-entry-error {
    background: color-mix(in srgb, var(--button-color), white 30%);
}

::deep .log-tooltip-title {
    font-weight: bold;
    font-size: 15px;
}

::deep .log-tooltip-subtitle {
    color: var(--foreground-subtext-rest);
    font-size: 12px;
    padding-left: 0.5rem;
}

::deep.log-tooltip-title-container {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 4px;
    margin-top: 4px;
}

::deep.log-tooltip-table {
    margin-bottom: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 12px;
}

::deep.log-tooltip-table td:nth-child(1) {
    width: 25%;
}

::deep.log-tooltip-table td {
    padding: calc((var(--design-unit) + var(--focus-stroke-width) - var(--stroke-width))* 1px) 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-content: center;
    border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
}
